python early:
    
    config.save_directory = "Spirited_Heart-1.2"
    config.version="1.3.1"
    demo=1
init -1:
    python hide:
        
        config.developer = False
        
        
        
        
        config.screen_width = 1024
        config.screen_height = 768
        config.window_icon = "gfx/icon.png"
        
        config.window_title = u"悸动之心 豪华版"
        
        layout.button_menu()
        
        
        
        
        
        
        
        
        
        
        
        
        theme.roundrect(
        
                
                widget = "#927055",
        
                
                widget_hover = "#C6A151",
        
                
                widget_text = "#ffffff",
        
                
                
                widget_selected = "#FF0",
        
                
                disabled = "#404040",
        
                
                disabled_text = "#c8c8c8",
        
                
                label = "#ffffff",
        
                
                frame = "#112D",
        
                
                
                rounded_window = False,
        
                
                
                
                mm_root = "gfx/gamemenu.jpg",
        
                
                
                
                gm_root = "gfx/moon.jpg",
        
                
                
                less_rounded = True,
        
                
                
                
                )
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        style.window.left_padding = 24
        style.window.right_padding = 16
        style.window.top_padding = 16
        style.window.bottom_padding = 16
        style.window.background =  Frame("gfx/window1.png",8,8)
        style.window.xmaximum = 640
        style.window.bottom_margin=8
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        style.default.font = "wqy-microhei.ttf"
        
        
        
        style.default.size = 18
        style.default.justify=True
        
        
        
        
        
        
        
        
        
        
        
        config.has_sound = True
        
        
        
        config.has_music = True
        
        
        
        config.has_voice = True
        
        
        
        style.button.hover_sound = "snd/key.ogg"
        style.button.activate_sound = "snd/over.ogg"
        style.imagemap.activate_sound = "snd/click.ogg"
        
        
        
        config.enter_sound = "snd/click.ogg"
        config.exit_sound = "snd/click.ogg"
        
        
        config.sample_sound = "snd/click.ogg"
        
        
        config.main_menu_music = "snd/main.ogg"
        
        
        
        
        
        config.enter_transition = dissolve
        
        
        config.exit_transition = dissolve
        
        
        config.intra_transition = Dissolve(.25)
        
        
        config.main_game_transition = Dissolve(.25)
        
        
        config.game_main_transition = Dissolve(.25)
        
        
        config.end_splash_transition = dissolve
        
        
        config.end_game_transition = fade
        
        
        config.after_load_transition = dissolve
        
        
        
        
        
        
        
        style.my_bar = Style(style.default)
        style.my_bar.left_bar = Frame("gfx/bar_full.png", 12, 12)
        style.my_bar.right_bar = Frame("gfx/bar_empty.png", 12, 12)
        style.my_bar.xmaximum = 100 
        style.my_bar.ymaximum = 20 
        
        style.my_bar2 = Style(style.default)
        style.my_bar2.left_bar = Frame("gfx/bar2_full.png", 12, 12)
        style.my_bar2.right_bar = Frame("gfx/bar2_empty.png", 12, 12)
        style.my_bar2.xmaximum = 100 
        style.my_bar2.ymaximum = 10 
        
        style.my_bar3 = Style(style.default)
        style.my_bar3.left_bar = Frame("gfx/bar3_full.png", 12, 12)
        style.my_bar3.right_bar = Frame("gfx/bar3_empty.png", 12, 12)
        style.my_bar3.xmaximum = 150 
        style.my_bar3.ymaximum = 28 
        
        style.my_bar4 = Style(style.default)
        style.my_bar4.left_bar = Frame("gfx/bar4_full.png", 12, 12)
        style.my_bar4.right_bar = Frame("gfx/bar4_empty.png", 12, 12)
        style.my_bar4.xmaximum = 300 
        style.my_bar4.ymaximum = 56 
        
        
        config.default_fullscreen = False
        
        
        
        config.default_text_cps = 60
        
        style.menu_choice_button.background = Frame("gfx/window1.png",24,24,tile=True)
        style.button.background = Frame("gfx/window1.png",24,24,tile=True)
        style.button.hover_background = Frame("gfx/window2.png",24,24,tile=True)
        style.button.yminimum = 50
        style.button.left_padding = 12
        style.button.right_padding = 12
        
        style.create("trbutt","default")
        style.trbutt.background= Frame("gfx/window3.png",24,24,tile=True)
        style.trbutt.hover_background = Frame("gfx/window4.png",24,24,tile=True)
        style.trbutt.bottom_padding=4
        
        style.create("buttonX","button")
        style.buttonX.xalign=0.5
        
        style.create("defaultX","default")
        style.defaultX.xcenter=0.5
        style.defaultX.text_align=0.5
        
        
        
        
        
        
        
        style.menu_choice_button.hover_background = Frame("gfx/window2.png",24,24,tile=True)
        style.menu_choice_button.xminimum = 600
        
        style.menu_choice_button.yalign = 1.0
        style.menu_choice_button.ymargin = 2
        style.menu_choice_button.ypadding = 14
        style.menu_choice.size = 18
        
        
        style.menu_choice_button.xalign = 0.5
        style.yesno_frame.xmaximum=400
        style.yesno_frame.xalign=0.5
        style.menu_window.yalign = 1.0
        style.menu_window.bottom_margin=20
        
        style.file_picker_frame.background =  Frame("gfx/window1.png",24,24,tile=True)
        style.yesno_frame.background =  Frame("gfx/window3.png",24,24,tile=True)
        style.yesno_frame.yalign = 0.8
        style.thumbnail_frame.background =  Frame("gfx/window3.png",24,24,tile=True)
        config.thumbnail_width = 200
        config.thumbnail_height = 150
        style.gm_nav_frame.background=None
        style.imagemap_button.hover_sound = "snd/key.ogg"
        style.imagemap_button.activate_sound = "snd/click.ogg"
        
        style.pref_slider.left_bar = "gfx/sbar_full.png"
        style.pref_slider.right_bar = "gfx/sbar_empty.png"
        style.pref_slider.hover_left_bar = "gfx/sbar_full.png"
        style.pref_slider.hover_right_bar = "gfx/sbar_empty.png"
        style.pref_slider.ymaximum = 40
        style.pref_slider.xmaximum = 250
        style.pref_slider.xminimum = 250
        style.pref_slider.thumb = "gfx/thumb.png"
        style.pref_slider.left_gutter =34
        style.pref_slider.right_gutter =32
        
        style.create("endT","default")
        style.endT.background= None
        
        
        style.create("tip","default")
        style.tip.background= None
        style.tip.outlines =[(4,"#0005"),(2,"#0007"),(1,"#444")]
        style.tip.color="#FFF"
        style.tip.size=20
init:
    python:
        
        style.image_placement.xpos = 0.5
        style.image_placement.ypos = 1.0
        style.image_placement.xanchor = 0.5
        style.image_placement.yanchor = 1.0
init:
    define left = Position(xalign=0.0)
init:
    define center = Position(xalign=0.5)
init:
    define truecenter = Position(xalign=0.5, yalign=0.5)
init:
    define right = Position(xalign=1.0)
init:
    define offscreenleft = Position(xpos=0.0, xanchor=1.0)
init:
    define offscreenright = Position(xpos=1.0, xanchor=0.0)
init:
    transform flow(x, y, z, s, r):
        delay (s*5) 
        xalign x yalign y zoom z alpha 1 rotate r 
        linear s xalign -.5 yalign (renpy.random.random()*1.1) alpha 0 rotate (r+360) 
        xalign 1.5 yalign y 
        repeat
init:
    transform blink(d):
        alpha 0 
        linear 0.5 alpha 1.0 
        pause d 
        linear 0.5 alpha 0 
init:
    transform slider(d):
        xpos 1.5 
        pause d 
        ease 1.0 xpos .99 xanchor 1.0 
init:
    transform pop(y1, y2, a1, a2, d):
        ypos y1 alpha a1 
        ease d ypos y2 alpha a2 
screen main_menu:
    tag menu
    modal False
    window:
        style 'mm_root'
    for i in range(20):
        add 'gfx/leaf.png':
            at (flow((1.2 + (renpy.random.random() * 1.8)), (renpy.random.random() * 1.3), (0.5 + (renpy.random.random() * 0.7)), (8.5 + (renpy.random.random() * 5.5)), renpy.random.randint(0, 360)))
    frame:
        xalign 0.98
        style 'default'
        yalign 0.65
        fixed:
            if ((persistent.topogigio == None) or (persistent.minnie == None)):
                imagebutton:
                    style 'default'
                    hover 'gfx/menu0b.png'
                    ypos 150
                    idle 'gfx/menu0.png'
                    at slider(0.1)
                    action Jump('about')
            imagebutton:
                style 'default'
                hover 'gfx/menu1b.png'
                ypos 300
                idle 'gfx/menu1.png'
                at slider(0.2)
                action Start()
            imagebutton:
                style 'default'
                hover 'gfx/menu2b.png'
                ypos 390
                idle 'gfx/menu2.png'
                at slider(0.5)
                action ShowMenu('load')
            imagebutton:
                style 'default'
                hover 'gfx/menu3b.png'
                ypos 480
                idle 'gfx/menu3.png'
                at slider(0.8)
                action ShowMenu('preferences')
            imagebutton:
                style 'default'
                hover 'gfx/menu4b.png'
                ypos 570
                idle 'gfx/menu4.png'
                at slider(1.1)
                action Jump('credits')
            imagebutton:
                style 'default'
                hover 'gfx/menu5b.png'
                ypos 660
                idle 'gfx/menu5.png'
                at slider(1.4)
                action Quit(confirm=False)
    text (('Version %s' % config.version)):
        xalign 0.01
        style 'tip'
        yalign 1.0
        size 16

init:
    python:
        
        
        
        
        
        build.directory_name = config.window_title+"-"+config.version
        
        
        
        
        build.executable_name = config.window_title
        
        
        
        build.include_update = False
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        build.classify('**~', None)
        build.classify('**.bak', None)
        build.classify('**.txt', None)
        build.classify('**/.**', None)
        build.classify('**/#**', None)
        build.classify('**/**.rpy', None)
        
        
        
        build.classify('game/**.png', 'archive')
        build.classify('game/**.tga', 'archive')
        build.classify('game/**.jpg', 'archive')
        build.classify('game/**.ttf', 'archive')
        build.classify('game/**.fnt', 'archive')
        build.classify('game/**.ogg', 'archive')
        
        
        
        build.documentation('*.htm')
        build.documentation('*.html')